﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="ProjectHT.YKDGVB2012.Core.UserControls.uc_DanhsachDT,ProjectHT.YKDGVB2012.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69db40eb91817252" %>
<%@ Import Namespace="ProjectHT.YKDGVB2012.Core" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
<telerik:RadScriptManager ID="scriptmanager1" runat="server">
</telerik:RadScriptManager>
<style type="text/css">
    table .rlvTable
    {
        border: 1px solid #DEDFDA;
        padding: 2px;
        margin: 0px;
        vertical-align: middle;
        display: table-cell;
        border-bottom: 0px;
        border-left: 0px;
    }
    table .rlvTable td, table .rlvTable th
    {
        border-bottom: 1px solid #DEDFDA;
        border-left: 1px solid #DEDFDA;
    }
    .subtitle
    {
        font-family: 'Arial';
        font-size: 9pt;
        font-weight: bold;
        padding-left: 10px;
        background: #FFFFCE;
        height: 22px;
        color: #C60000;
    }
    .rlvI
    {
        font-family: 'Arial';
        font-size: 10pt;
    }
    .rlvA
    {
        font-family: 'Arial';
        font-size: 10pt;
    }
    .Pagging
    {
        font-family: 'Arial';
        font-size: 10pt;
        line-height: 25px;
    }
    .Pagging span
    {
        margin-left: 10px;
        text-align: center;
    }
</style>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%" EnablePageHeadUpdate="False"
    HorizontalAlign="NotSet">
    <telerik:RadListView runat="server" ID="RadListView1" AllowPaging="True" DataKeyNames="ID">
        <alternatingitemtemplate>
                <tr class="rlvA">                 
                    <td>
                       <img src="/_LAYOUTS/1033/Icon/item.gif" />
                    </td>
                    <td style="width:55%">
                       <%#GetTitle(Eval("ID").ToString())%>
                    </td>                   
                     <td>
                        <%#ReadFull(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkDown(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkGopy(Eval("ID").ToString())%>
                    </td>
                </tr>
        </alternatingitemtemplate>
        <itemtemplate>
                <tr class="rlvI">
                    <td>
                       <img src="/_LAYOUTS/1033/Icon/item.gif" />
                    </td>
                    <td style="width:55%">
                       <%#GetTitle(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#ReadFull(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkDown(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkGopy(Eval("ID").ToString())%>
                    </td>
                    
                </tr>
        </itemtemplate>
        <emptydatatemplate>
                <div>
                    <div>
                       Không có văn bản 
                    </div>
                </div>
        </emptydatatemplate>
        <layouttemplate>
                <div class="RadListView RadListView_Metro">
                    <table cellspacing="0" cellpadding='0' style="width: 100%;" class="rlvTable">
                        <thead>
                            <tr class="rlvHeader">
                                <th colspan="5" class ="subtitle">
                                   CÁC DỰ THẢO VĂN BẢN ĐANG LẤY Ý KIẾN ĐÓNG GÓP
                                </th>                                
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <td colspan="5" style="background-color: #f6f6f6" class="Pagging">
                                     <telerik:RadDataPager  EnableViewState="true" ID="RadDataPagerProducts" runat="server" Skin="Metro" PagedControlID="RadListView1" PageSize="10" >
                                <Fields>
                                    <telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
                                    <telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
                                    <telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
                                </Fields>
                            </telerik:RadDataPager>
                                </td>
                            </tr>
                        </tfoot>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server">
                            </tr>
                        </tbody>
                    </table>
                </div>
       </layouttemplate>
    </telerik:RadListView>
    <br />
    <telerik:RadListView runat="server" ID="Radlist1" AllowPaging="True" DataKeyNames="ID">
        <alternatingitemtemplate>
                <tr class="rlvA">                 
                    <td>
                       <img src="/_LAYOUTS/1033/Icon/item.gif" />
                    </td>
                    <td style="width:55%">
                      <span><%#Eval("Title") %></span>
                    </td>                   
                     <td>
                        <%#ReadFull(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkDown(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkGopy(Eval("ID").ToString())%>
                    </td>
                </tr>
        </alternatingitemtemplate>
        <itemtemplate>
                <tr class="rlvI">
                    <td>
                       <img src="/_LAYOUTS/1033/Icon/item.gif" />
                    </td>
                    <td style="width:55%">
                           <span><%#Eval("Title") %></span>
                    </td>
                    <td>
                        <%#ReadFull(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkDown(Eval("ID").ToString())%>
                    </td>
                    <td>
                        <%#LinkGopy(Eval("ID").ToString())%>
                    </td>
                    
                </tr>
        </itemtemplate>
        <emptydatatemplate>
                <div>
                    <div>
                        không có văn bản hết hạn
                    </div>
                </div>
        </emptydatatemplate>
        <layouttemplate>
                <div class="RadListView RadListView_Metro">
                    <table cellspacing="0" cellpadding='0' style="width: 100%;" class="rlvTable">
                        <thead>
                            <tr class="rlvHeader">
                                <th colspan="5" class ="subtitle">
                                 CÁC DỰ THẢO VĂN BẢN ĐÃ HẾT HẠN LẤY Ý KIẾN ĐÓNG GÓP
                                </th>                                
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <td colspan="5" style="background-color: #f6f6f6" class="Pagging">
                                     <telerik:RadDataPager  EnableViewState="true" ID="D" runat="server" Skin="Metro" PagedControlID="Radlist1" PageSize="10" >
                                <Fields>
                                    <telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
                                    <telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
                                    <telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
                                </Fields>
                            </telerik:RadDataPager>
                                </td>
                            </tr>
                        </tfoot>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server">
                            </tr>
                        </tbody>
                    </table>
                </div>
       </layouttemplate>
    </telerik:RadListView>
</telerik:RadAjaxPanel>